package orm;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent; 

import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION) 
public class Stock extends BaseIdObject { 
 
    @Persistent 
    private String code;
    
    @Persistent
    private String name;
    
    @Persistent
    private User user;
    
    @Persistent
    private Date startDate;
    
    @Persistent
    private Date endDate;
    
    @Persistent
    private float openPrice;
    
    @Persistent
    private float endPrice;
    
    @Persistent
    private float highPrice;
    
    @Persistent
    private float lowPrice;
 
    public Stock(User user, String code, String name, Date startDate, Date endDate) {
    	this.user = user;
        this.code = code;
        this.name = name;
        this.startDate = startDate;
        this.endDate = endDate;
    }
    
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public float getOpenPrice() {
		return openPrice;
	}

	public void setOpenPrice(float openPrice) {
		this.openPrice = openPrice;
	}

	public float getEndPrice() {
		return endPrice;
	}

	public void setEndPrice(float endPrice) {
		this.endPrice = endPrice;
	}

	public float getHighPrice() {
		return highPrice;
	}

	public void setHighPrice(float highPrice) {
		this.highPrice = highPrice;
	}

	public float getLowPrice() {
		return lowPrice;
	}

	public void setLowPrice(float lowPrice) {
		this.lowPrice = lowPrice;
	}
	
	

}